<?php
  require "core/config.php";
  require "core/function.php";
  $page = '';
  
    // Route
  if (isset($_GET['p'])) {
    $page = $_GET['p'];
  }

  require "includes/header.php";
  require "includes/sidebar.php";



  switch ($page) {
    case 'news':
      include "includes/news.php";
      break;
    case 'about':
      include "includes/about.php";
      break;
    case 'cont':
      include "includes/contact.php";
      break;
    case 'del':
      include "includes/delivery.php";
      break;
    
    default:
      include "includes/goods.php";
      // include "solo_page.php";
      break;
  }

  require "includes/footer.php";
  mysql_close($db_name);
?>


